
ac.skill('群体嘲讽'){
    temp = '攻击触发',
    model1 = [[Abilities\Spells\NightElf\Taunt\TauntCaster.mdl]],
    on_run = function(self,hero,target)
        local point = target:get_point()
        local damage = self:dmg_get()
        hero:create_shadow(point,nil,1)
        
        point:effect{
            model = self.model1,
            size = 2,
            time = 0.2,
        }
        --ac.hint_white(point,400,1)
        hero:aoe_damage(point,400,damage,self,function(u)
            u:add_buff '嘲讽'{source = hero,time = 3}
        end)
    end,
}


local buff = ac.buff['嘲讽']

function buff:on_add()
    local source = self.source
    local hero = self.owner
    hero:issue_order('attack',source)
    self:gc(hero:event '单位-造成伤害前'(function(_,_,target,data)
        if target == source then
            data:div(10)
        end
    end))
end